package com.study.springcache.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Description:
 * @Author: 刘超
 * @Date: 2023-05-29 19:13
 */
@Component("commonConfig")
@ConfigurationProperties(prefix = "common")
public class CommonConfig {

    private boolean cache = true;

    public boolean isCache() {
        return cache;
    }

    public void setCache(boolean cache) {
        this.cache = cache;
    }
}
